/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.mockexam.theory.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.entity.TreeEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 理论模拟考试对象表Entity
 * @author zpp
 * @version 2020-02-09
 */
@Table(name="t_mockexam_theory", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="obj_name", attrName="objName", label="数据名称", queryType=QueryType.LIKE, isTreeName=true),
		@Column(name="obj_type", attrName="objType", label="数据类型"),
		@Column(includeEntity=TreeEntity.class),
		@Column(includeEntity=DataEntity.class),
		@Column(name="obj_explain", attrName="objExplain", label="数据说明"),
		@Column(name="obj_answer", attrName="objAnswer", label="答案"),
		@Column(name="introduction", attrName="introduction", label="简介"),
		@Column(name="obj_picture", attrName="objPicture", label="主题封面"),
		@Column(name="score", attrName="score", label="分数"),
		@Column(name="num_bars", attrName="numBars", label="总条数"),
		@Column(name="analysis", attrName="analysis", label="解析"),
		@Column(name="post",attrName="post",label="岗位"),
		@Column(name="category",attrName="category",label="考试类别"),
		@Column(name="difficulty",attrName="difficulty",label="困难程度"),		
		@Column(name="knowledge_point_type",attrName="knowledgePointType",label="知识类型"),
	}, orderBy="a.tree_sorts, a.id"
)
public class TmockexamTheory extends TreeEntity<TmockexamTheory> {
	
	private static final long serialVersionUID = 1L;
	private String objName;		// 数据名称
	private Integer objType;		// 数据类型
	private Integer objExplain;		// 数据说明
	private String objAnswer;		// 答案
	private String introduction;		// 简介
	private String objPicture;
	private BigDecimal score;
	private String analysis;
    private Integer category;
	private String post;
	private Integer difficulty;
	private Integer knowledgePointType;
	private String  strExplain;
    private String categoryName;
	private String postName;
	private String difficultyName;
	private String  knowledgePointName;
	private Integer numBars;
	
	public Integer getNumBars() {
		return numBars;
	}

	public void setNumBars(Integer numBars) {
		this.numBars = numBars;
	}

	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public Integer getDifficulty() {
		return difficulty;
	}

	public void setDifficulty(Integer difficulty) {
		this.difficulty = difficulty;
	}

	public Integer getKnowledgePointType() {
		return knowledgePointType;
	}

	public void setKnowledgePointType(Integer knowledgePointType) {
		this.knowledgePointType = knowledgePointType;
	}

	public String getStrExplain() {
		return strExplain;
	}

	public void setStrExplain(String strExplain) {
		this.strExplain = strExplain;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getPostName() {
		return postName;
	}

	public void setPostName(String postName) {
		this.postName = postName;
	}

	public String getDifficultyName() {
		return difficultyName;
	}

	public void setDifficultyName(String difficultyName) {
		this.difficultyName = difficultyName;
	}

	public String getKnowledgePointName() {
		return knowledgePointName;
	}

	public void setKnowledgePointName(String knowledgePointName) {
		this.knowledgePointName = knowledgePointName;
	}

	public String getAnalysis() {
		return analysis;
	}

	public void setAnalysis(String analysis) {
		this.analysis = analysis;
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public String getObjPicture() {
		return objPicture;
	}

	public void setObjPicture(String objPicture) {
		this.objPicture = objPicture;
	}

	public TmockexamTheory() {
		this(null);
	}

	public TmockexamTheory(String id){
		super(id);
	}
	
	@Override
	public TmockexamTheory getParent() {
		return parent;
	}

	@Override
	public void setParent(TmockexamTheory parent) {
		this.parent = parent;
	}
	
	@Length(min=0, max=255, message="数据名称长度不能超过 255 个字符")
	public String getObjName() {
		return objName;
	}

	public void setObjName(String objName) {
		this.objName = objName;
	}
	
	public Integer getObjType() {
		return objType;
	}

	public void setObjType(Integer objType) {
		this.objType = objType;
	}
	
	public Integer getObjExplain() {
		return objExplain;
	}

	public void setObjExplain(Integer objExplain) {
		this.objExplain = objExplain;
	}
	
	@Length(min=0, max=255, message="答案长度不能超过 255 个字符")
	public String getObjAnswer() {
		return objAnswer;
	}

	public void setObjAnswer(String objAnswer) {
		this.objAnswer = objAnswer;
	}
	
	@Length(min=0, max=255, message="简介长度不能超过 255 个字符")
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	
}